<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>QSculpt: SmoothRenderer::Impl Struct Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">QSculpt
   &#160;<span id="projectnumber">0.0.1a</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_smooth_renderer.html">SmoothRenderer</a>      </li>
      <li class="navelem"><a class="el" href="struct_smooth_renderer_1_1_impl.html">Impl</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">SmoothRenderer::Impl Struct Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="SmoothRenderer::Impl" -->
<p><a href="struct_smooth_renderer_1_1_impl-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_smooth_renderer_1_1_impl.html#ab6d3fa483eb21467e1049e008d755b48">renderVbo</a> (const <a class="el" href="class_i_surface.html">ISurface</a> *mesh)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_smooth_renderer_1_1_impl.html#a8ad5038180e2e4efffd3e8079a3837e3">renderImmediate</a> (const <a class="el" href="class_i_surface.html">ISurface</a> *mesh)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aad0df1f991b6cc5ff26ab57d2c0d99dc"></a><!-- doxytag: member="SmoothRenderer::Impl::getVBO" ref="aad0df1f991b6cc5ff26ab57d2c0d99dc" args="(ISurface *mesh)" -->
<a class="el" href="class_vertex_buffer.html">VertexBuffer</a> *&#160;</td><td class="memItemRight" valign="bottom"><b>getVBO</b> (<a class="el" href="class_i_surface.html">ISurface</a> *mesh)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="struct_smooth_renderer_1_1_impl.html#a091ec8605a088ab20a3cfe4786bbc6b4">fillVertexBuffer</a> (<a class="el" href="class_i_surface.html">ISurface</a> *mesh, <a class="el" href="class_vertex_buffer.html">VertexBuffer</a> *vbo)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af935bf7ac486b90b9d04d38d07f51f91"></a><!-- doxytag: member="SmoothRenderer::Impl::processPolygon" ref="af935bf7ac486b90b9d04d38d07f51f91" args="(const Face &amp;f, std::vector&lt; SmoothVtxStruct &gt; &amp;buffer, size_t &amp;pos)" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>processPolygon</b> (const <a class="el" href="class_face.html">Face</a> &amp;f, std::vector&lt; <a class="el" href="structtag_smooth_vtx_struct.html">SmoothVtxStruct</a> &gt; &amp;buffer, size_t &amp;pos)</td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ae6ab1fa733d12261f3a6eb8e9c553b06"></a><!-- doxytag: member="SmoothRenderer::Impl::processTriangle" ref="ae6ab1fa733d12261f3a6eb8e9c553b06" args="(const Vertex &amp;v1, const Vertex &amp;v2, const Vertex &amp;v3, std::vector&lt; SmoothVtxStruct &gt; &amp;buffer, size_t &amp;pos, GLfloat color[4])" -->
bool&#160;</td><td class="memItemRight" valign="bottom"><b>processTriangle</b> (const <a class="el" href="class_vertex.html">Vertex</a> &amp;v1, const <a class="el" href="class_vertex.html">Vertex</a> &amp;v2, const <a class="el" href="class_vertex.html">Vertex</a> &amp;v3, std::vector&lt; <a class="el" href="structtag_smooth_vtx_struct.html">SmoothVtxStruct</a> &gt; &amp;buffer, size_t &amp;pos, GLfloat color[4])</td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a6b5cfb16fd16e7ea6e6d9121f4744a0f"></a><!-- doxytag: member="SmoothRenderer::Impl::numTriangles" ref="a6b5cfb16fd16e7ea6e6d9121f4744a0f" args="" -->
size_t&#160;</td><td class="memItemRight" valign="bottom"><b>numTriangles</b></td></tr>
</table>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a091ec8605a088ab20a3cfe4786bbc6b4"></a><!-- doxytag: member="SmoothRenderer::Impl::fillVertexBuffer" ref="a091ec8605a088ab20a3cfe4786bbc6b4" args="(ISurface *mesh, VertexBuffer *vbo)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SmoothRenderer::Impl::fillVertexBuffer </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_i_surface.html">ISurface</a> *&#160;</td>
          <td class="paramname"><em>mesh</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_vertex_buffer.html">VertexBuffer</a> *&#160;</td>
          <td class="paramname"><em>vbo</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Fill vertex buffer with the mesh data. </p>

</div>
</div>
<a class="anchor" id="a8ad5038180e2e4efffd3e8079a3837e3"></a><!-- doxytag: member="SmoothRenderer::Impl::renderImmediate" ref="a8ad5038180e2e4efffd3e8079a3837e3" args="(const ISurface *mesh)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SmoothRenderer::Impl::renderImmediate </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_i_surface.html">ISurface</a> *&#160;</td>
          <td class="paramname"><em>mesh</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Draw the mesh using the glBeing()/glEnd() and friends functions. This method is a fallback method if the VBOs are not supported. </p>

</div>
</div>
<a class="anchor" id="ab6d3fa483eb21467e1049e008d755b48"></a><!-- doxytag: member="SmoothRenderer::Impl::renderVbo" ref="ab6d3fa483eb21467e1049e008d755b48" args="(const ISurface *mesh)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void SmoothRenderer::Impl::renderVbo </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="class_i_surface.html">ISurface</a> *&#160;</td>
          <td class="paramname"><em>mesh</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">
<p>Draw the mesh using OpenGL VBOs. The VBOs are re-build when the mesh has been changed since the last draw. </p>

</div>
</div>
<hr/>The documentation for this struct was generated from the following file:<ul>
<li>engine/src/SmoothRenderer.cpp</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sat Aug 27 2011 15:38:53 for QSculpt by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
